//
//  CurrentUser.h
//  QuickView
//
//  Created by Liao on 13-11-20.
//  Copyright (c) 2013年 LCheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WeiboSDK.h"
#import "CommonConfig.h"

typedef enum {
    kSuccess = 1,
    kNeedLogin = 2,
    kError = 3
} behaviorResult;

@interface CurrentUser : NSObject <WBHttpRequestDelegate>

@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *avatar_url;
@property (nonatomic, strong) NSString *token;
@property (nonatomic) BOOL isLogin;

+ (CurrentUser *)SharedCurrentUser;
+ (CurrentUser *)GetUserWithCheckLogin;
+ (void)Login:(NSString *)uid Token:(NSString *)token;
+ (NSString *)GetToken;
+ (void)tryLogin;
+ (void)tryLogout;

@end
